import request from '@/utils/request'

// 查询门禁卡列表
export function entranceGuardCardList(data) {
  return request({
    url: '/system/entranceGuardCard/entranceGuardCardList',
    method: 'post',
    data: data
  })
}

// 添加门禁卡
export function addEntranceGuardCard(data) {
  return request({
    url: '/system/entranceGuardCard/addEntranceGuardCard',
    method: 'post',
    data: data
  })
}

// 删除门禁卡
export function deleteEntranceGuardCard(data) {
  return request({
    url: `/system/entranceGuardCard/deleteEntranceGuardCard?id=${data}`,
    method: 'delete'
  })
}

// 门禁卡详情
export function entranceGuardCardInfo(data) {
  return request({
    url: '/system/entranceGuardCard/entranceGuardCardInfo/'+data,
    method: 'get',
  })
}

// 编辑门禁卡
export function editEntranceGuardCard(data) {
  return request({
    url: '/system/entranceGuardCard/editEntranceGuardCard',
    method: 'put',
    data: data
  })
}


